package Experiment3;

public class Course {
    private String courseId;
    private String courseName;
    private String location;
    private String time;
    private String teacherId;

    public Course(String courseId, String courseName, String location, String time, String teacherId) {
        this.courseId = courseId;
        this.courseName = courseName;
        this.location = location;
        this.time = time;
        this.teacherId = teacherId;
    }

    // Getter方法
    public String getCourseId() {
        return courseId;
    }

    public String getCourseName() {
        return courseName;
    }

    public String getLocation() {
        return location;
    }

    public String getTime() {
        return time;
    }

    public String getTeacherId() {
        return teacherId;
    }

    // 打印课程信息
    public void printCourseInfo() {
        System.out.println("课程ID: " + courseId + ", 名称: " + courseName +
                ", 地点: " + location + ", 时间: " + time +
                ", 教师ID: " + teacherId);
    }
}
